/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package propres;

import java.util.*;

/**
 *
 * @author david
 */
public class carga {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
        // TODO code application logic here
        estrucalim alime = new estrucalim();
        g_disco disc = new g_discoa();
        //alime = (estrucalim) disc.llegir_objecte();
        Date o = new Date(2008, 11, 10);
        Date u = new Date(2009, 12, 12);
        Interval q = new Interval(o, u);
        dieta Y = new dieta();

        alimento b = new alimento("beacon", 32, 10, 15, 36, "ABCD", q, 126735, 11001, "principal", 110);
        alimento c = new alimento("kiwi", 230, 10, 15, 36, "ABCD", q, 540, 111, "secundario", 001);
        alimento d = new alimento("aceitunas", 212, 10, 15, 36, "ABCD", q, 2145, 1101, "secundario", 001);
        alimento e = new alimento("cerdo", 564, 10, 15, 36, "ABCD", q, 24432, 1010, "principal", 011);
        alimento l1 = new alimento("Volldam", 23, 10, 15, 36, "ABCD", q, 125, 11101, "principal", 110);
        alimento l2 = new alimento("cocacola", 24, 10, 15, 36, "ABCD", q, 135, 11101, "principal", 110);
        alimento l3 = new alimento("kas naranja", 23, 10, 15, 36, "ABCD", q, 125, 10111, "principal", 110);
        alimento l4 = new alimento("kas limon", 32, 10, 15, 36, "ABCD", q, 242, 10111, "principal", 011);
        alimento l5 = new alimento("cafe cortado", 12, 10, 15, 36, "ABCD", q, 265, 1011, "principal", 110);
        alimento l6 = new alimento("cafe largo", 24, 10, 15, 36, "ABCD", q, 242, 1011, "principal", 011);
        alimento l7 = new alimento("tapa de jamon", 32, 10, 15, 36, "ABCD", q, 222, 11110, "secundario", 011);
        alimento l8 = new alimento("Iberico del pais", 4, 10, 15, 36, "ABCD", q, 232, 1110, "principal", 011);
        alimento l9 = new alimento("canelones", 11, 10, 15, 36, "ABCD", q, 125, 11110, "principal", 110);
        alimento l10 = new alimento("pastas desayuno", 31, 10, 15, 36, "ABCD", q, 135, 10000, "secundario", 110);
        alimento l11 = new alimento("Gazpacho", 33, 10, 15, 36, "ABCD", q, 175, 1100, "principal", 110);
        alimento l12 = new alimento("butifarra", 25, 10, 15, 36, "ABCD", q, 243, 110, "secundario", 011);
        alimento l13 = new alimento("tapita de marisco", 52, 10, 15, 36, "ABCD", q, 325, 1011, "principal", 110);
        alimento l14 = new alimento("hambueguesa", 24, 10, 15, 36, "ABCD", q, 232, 10001, "principal", 011);
        alimento l15 = new alimento("frankfurt", 54, 10, 15, 36, "ABCD", q, 242, 11000, "principal", 011);
        alimento l16 = new alimento("pikansburg", 26, 10, 15, 36, "ABCD", q, 211, 10, "principal", 011);
       
        /*
        alimento f1 = new alimento("Bastela de leche", 23, 10, 15, 36, "ABCD", q, 125, 10101, "secundario", 110);
        alimento f2 = new alimento("Dulce Marroquí de almendras y bastela", 24, 10, 15, 36, "ABCD", q, 135, 10101, "principal", 110);
        alimento f3 = new alimento("Creps César", 23, 10, 15, 36, "ABCD", q, 125, 10101, "principal", 110);
        alimento f4 = new alimento("Dulce de Batata", 32, 10, 15, 36, "ABCD", q, 242, 10101, "secundario", 011);
        alimento f5 = new alimento("Dulce de batata y almendras", 12, 10, 15, 36, "ABCD", q, 265, 10101, "secundario", 110);
        alimento f6 = new alimento("Dulce de castañas", 24, 10, 15, 36, "ABCD", q, 242, 10101, "principal", 011);
        alimento f7 = new alimento("Mousse de chocolate", 32, 10, 15, 36, "ABCD", q, 222, 10101, "principal", 011);
        alimento f8 = new alimento("Bizcocho", 4, 10, 15, 36, "ABCD", q, 232, 10101, "principal", 011);
        alimento f9 = new alimento("Tarta de bizcocho", 11, 10, 15, 36, "ABCD", q, 125, 10101, "principal", 110);
        alimento f10 = new alimento("Tarta de crema de limón", 31, 10, 15, 36, "ABCD", q, 135, 10101, "secundario", 110);
        alimento f11 = new alimento("Bizcocho yogur", 33, 10, 15, 36, "ABCD", q, 175, 10101, "secundario", 110);
        alimento f12 = new alimento("Tarta de naranja ", 25, 10, 15, 36, "ABCD", q, 243, 10101, "principal", 011);
        alimento f13 = new alimento("Bolas de almendras", 52, 10, 15, 36, "ABCD", q, 325, 10101, "secundario", 110);
        alimento f14 = new alimento("Dulces de mantequilla", 24, 10, 15, 36, "ABCD", q, 232, 10101, "secundario", 011);
        alimento f15 = new alimento("Naranjas confitadas", 54, 10, 15, 36, "ABCD", q, 242, 10101, "principal", 011);
        alimento f16 = new alimento("Uvas confitadas", 26, 10, 15, 36, "ABCD", q, 211, 10101, "principal", 011);
        
        alimento e1 = new alimento("merluza", 32, 10, 15, 36, "ACD", q, 126735, 1010, "principal", 110);
        alimento e2 = new alimento("sandia", 230, 10, 15, 36, "ABD", q, 540, 01010, "secundario", 001);
        alimento e3 = new alimento("ciruelas", 212, 10, 15, 36, "ABC", q, 2145, 11111, "secundario", 001);
        alimento e4 = new alimento("marisco", 564, 10, 15, 36, "BCD", q, 24432, 1010, "principal", 011);
        alimento e5 = new alimento("cruasan", 32, 10, 15, 36, "ACD", q, 735, 10101, "secundario", 110);
        alimento e6 = new alimento("cacaolat", 230, 10, 15, 36, "ABD", q, 540, 10101, "principal", 001);
        alimento e7 = new alimento("filete de ternera", 212, 10, 15, 36, "ABC", q, 2145, 1010, "principal", 001);
        alimento e8 = new alimento("lomo", 564, 10, 15, 36, "BCD", q, 24432, 1010, "principal", 011);
         alimento e9 = new alimento("pimienta", 32, 10, 15, 36, "ACD", q, 375, 1010, "secundario", 110);
        alimento e10 = new alimento("pizza", 564, 10, 15, 36, "BCD", q, 232, 1010, "principal", 011);
        alimento e11 = new alimento("paella", 564, 10, 15, 36, "BCD", q, 242, 1010, "principal", 011);
        alimento e12 = new alimento("sopa", 564, 10, 15, 36, "BCD", q, 24432, 1010, "principal", 011);
         alimento e13 = new alimento("arroz", 32, 10, 15, 36, "ACD", q, 225, 1010, "secundario", 110);
        alimento f = new alimento("berberechos", 20, 10, 15, 36, "D", q, 100, 1010, "secundario", 110);
        alimento g = new alimento("esparragos", 20, 10, 15, 36, "AD", q, 10000, 1010, "secundario", 001);
        alimento h = new alimento("cafe", 1243, 10, 15, 36, "A", q, 1234, 10101, "principal", 001);
        alimento m = new alimento("carajillo de magno", 1234, 10, 15, 36, "", q, 114, 10101, "principal", 011);
        alimento m1 = new alimento("azucar", 1234, 10, 15, 36, "D", q, 114, 10101, "secundario", 011);
        alimento m2 = new alimento("sacarina", 1234, 10, 15, 36, "AD", q, 114, 10101, "secundario", 011);
        alimento m3 = new alimento("leche", 1234, 10, 15, 36, "", q, 114, 10101, "principal", 011);


        alimento p = new alimento("pollo", 322, 15, 11, 12, "ABCD", q, 1235, 1010, "principal", 110);
        alimento y = new alimento("iogurt", 120, 12, 12, 43, "ABCD", q, 5240, 1110, "secundario", 001);
        alimento r = new alimento("naranja", 312, 22, 13, 26, "ABCD", q, 245, 11111, "secundario", 001);
        alimento s = new alimento("salmon", 142, 20, 31, 31, "ABCD", q, 24632, 1010, "principal", 011);
*/
        alime.añadir_alimento(b);
        alime.añadir_alimento(c);
        alime.añadir_alimento(d);
        alime.añadir_alimento(e);
 /*      alime.añadir_alimento(e1);
        alime.añadir_alimento(e2);
        alime.añadir_alimento(e3);
        alime.añadir_alimento(e4);      
        alime.añadir_alimento(e5);
        alime.añadir_alimento(e6);
        alime.añadir_alimento(e7);
        alime.añadir_alimento(e8);
        alime.añadir_alimento(e9);
        alime.añadir_alimento(e10);
        alime.añadir_alimento(e11);
        alime.añadir_alimento(e12);
        alime.añadir_alimento(e13);
        alime.añadir_alimento(f1);
        alime.añadir_alimento(f2);
        alime.añadir_alimento(f3);
        alime.añadir_alimento(f4);
        alime.añadir_alimento(f5);
        alime.añadir_alimento(f6);
        alime.añadir_alimento(f7);
        alime.añadir_alimento(f8);
        alime.añadir_alimento(f9);
        alime.añadir_alimento(f10);
        alime.añadir_alimento(f11);
        alime.añadir_alimento(f12);
        alime.añadir_alimento(f13);
        alime.añadir_alimento(f14);
        alime.añadir_alimento(f15);
        alime.añadir_alimento(f16);
    */     alime.añadir_alimento(l1);
        alime.añadir_alimento(l2);
        alime.añadir_alimento(l3);
        alime.añadir_alimento(l4);
        alime.añadir_alimento(l5);
        alime.añadir_alimento(l6);
        alime.añadir_alimento(l7);
        alime.añadir_alimento(l8);
        alime.añadir_alimento(l9);
        alime.añadir_alimento(l10);
        alime.añadir_alimento(l11);
        alime.añadir_alimento(l12);
        alime.añadir_alimento(l13);
        alime.añadir_alimento(l14);
        alime.añadir_alimento(l15);
        alime.añadir_alimento(l16);
        
     /*   alime.añadir_alimento(f);
        alime.añadir_alimento(g);
        alime.añadir_alimento(h);
        alime.añadir_alimento(m);
        alime.añadir_alimento(m1);
        alime.añadir_alimento(m2);
        alime.añadir_alimento(m3);
        alime.añadir_alimento(p);
        alime.añadir_alimento(y);
        alime.añadir_alimento(r);
        alime.añadir_alimento(s);
*/
        disc.guardar_objecte(alime);




    }
}
